package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 报名退回/退出审核表
 *
 * @author hhj
 * @since 2023-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_enroll_back")
@Schema(name = "EduEnrollBack", title = "报名退回/退出审核表", description = "报名退回/退出审核表实体类")
public class EduEnrollBack extends Model<EduEnrollBack> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "eduEnrollBackId", title = "报名退回审核id")
    @TableId(value = "edu_enroll_back_id", type = IdType.ASSIGN_ID)
    private Long eduEnrollBackId;

    @Schema(name = "enrollBackType", title = "退回类型 1 报名中退回 2 录取后退出")
    @TableField(value = "enroll_back_type")
    private String enrollBackType;

    @Schema(name = "studentEnrollId", title = "报名id")
    @TableField(value = "student_enroll_id")
    private String studentEnrollId;

    @Schema(name = "fullName", title = "学生姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "idcard", title = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "submitterId", title = "提交人员userId")
    @TableField(value = "submitter_id")
    private String submitterId;

    @Schema(name = "submitterName", title = "提交人员姓名")
    @TableField(value = "submitter_name")
    private String submitterName;

    @Schema(name = "telphone", title = "提交人员联系电话")
    @TableField(value = "telphone")
    private String telphone;

    @Schema(name = "backRemarks", title = "退回原因")
    @TableField(value = "back_remarks")
    private String backRemarks;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "backStatus", title = "退回状态：0，审核中  1，审核通过 2 审核不通过")
    @TableField(value = "back_status")
    private String backStatus;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "schoolId", title = "审核学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolAuthStatus", title = "学校审核状态")
    @TableField(value = "school_auth_status")
    private String schoolAuthStatus;

    @Schema(name = "schoolAuthRemarks", title = "学校审核意见")
    @TableField(value = "school_auth_remarks")
    private String schoolAuthRemarks;

    @Schema(name = "schoolAuthTime", title = "学校审核时间")
    @TableField(value = "school_auth_time")
    private Date schoolAuthTime;

    @Schema(name = "schoolAuthUserId", title = "学校审核人")
    @TableField(value = "school_auth_user_id")
    private String schoolAuthUserId;

    @Schema(name = "authStatus", title = "基教科审核状态")
    @TableField(value = "auth_status")
    private String authStatus;

    @Schema(name = "authRemarks", title = "基教科审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "authTime", title = "基教科审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authUserId", title = "基教科审核人")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.eduEnrollBackId;
    }
}
